package com.jeesite.modules.rt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * rt_device_bohaoEntity
 * @author 李寒冰
 * @version 2024-09-26
 */
@Table(name="rt_device_bohao", alias="a", label="rt_device_bohao信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="vlan_id", attrName="vlanId", label="vlanId"),
		@Column(name="vlan_account", attrName="vlanAccount", label="拨号账号"),
		@Column(name="vlan_password", attrName="vlanPassword", label="拨号密码"),
		@Column(name="vlan_ip", attrName="vlanIp", label="ip"),
		@Column(name="vlan_name", attrName="vlanName", label="vlanName", queryType=QueryType.LIKE),
		@Column(name="gateway", attrName="gateway", label="网关"),
		@Column(name="nicmac", attrName="nicmac", label="网卡"),
		@Column(name="if_name", attrName="ifName", label="网卡名称", queryType=QueryType.LIKE),
		@Column(name="speed", attrName="speed", label="网卡速率"),
		@Column(name="status", attrName="status", label="线路实时状态", isQuery = false),
		@Column(name="is_ipv6", attrName="isIpv6", label="1：是ipv6，0：不是ipv6"),
		@Column(name="dial_code", attrName="dialCode", label="拨号错误码"),
		@Column(name="dial_msg", attrName="dialMsg", label="拨号错误信息"),
		@Column(name="device_id", attrName="deviceId", label="设备ID"),
		@Column(name="sn", attrName="sn", label="1", comment="SN"),
	}, orderBy="a.id DESC"
)
public class RtDeviceBohao extends DataEntity<RtDeviceBohao> {
	
	private static final long serialVersionUID = 1L;
	private String vlanId;		// vlanId
	private String vlanAccount;		// 拨号账号
	private String vlanPassword;		// 拨号密码
	private String vlanIp;		// ip
	private String vlanName;		// vlanName
	private String gateway;		// 网关
	private String nicmac;		// 网卡
	private String ifName;		// 网卡名称
	private String speed;		// 网卡速率
	private String dialCode;		// 拨号错误码
	private String dialMsg;		// 拨号错误信息
	private String deviceId;		// 设备ID
	private String isIpv6;		// 1：是ipv6，0：不是ipv6
	private String sn;

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public RtDeviceBohao() {
		this(null);
	}
	
	public RtDeviceBohao(String id){
		super(id);
	}
	
	@Size(min=0, max=255, message="vlanId长度不能超过 255 个字符")
	public String getVlanId() {
		return vlanId;
	}

	public void setVlanId(String vlanId) {
		this.vlanId = vlanId;
	}
	
	@Size(min=0, max=255, message="拨号账号长度不能超过 255 个字符")
	public String getVlanAccount() {
		return vlanAccount;
	}

	public void setVlanAccount(String vlanAccount) {
		this.vlanAccount = vlanAccount;
	}
	
	@Size(min=0, max=255, message="拨号密码长度不能超过 255 个字符")
	public String getVlanPassword() {
		return vlanPassword;
	}

	public void setVlanPassword(String vlanPassword) {
		this.vlanPassword = vlanPassword;
	}
	
	@Size(min=0, max=255, message="ip长度不能超过 255 个字符")
	public String getVlanIp() {
		return vlanIp;
	}

	public void setVlanIp(String vlanIp) {
		this.vlanIp = vlanIp;
	}
	
	@Size(min=0, max=255, message="vlanName长度不能超过 255 个字符")
	public String getVlanName() {
		return vlanName;
	}

	public void setVlanName(String vlanName) {
		this.vlanName = vlanName;
	}
	
	@Size(min=0, max=255, message="网关长度不能超过 255 个字符")
	public String getGateway() {
		return gateway;
	}

	public void setGateway(String gateway) {
		this.gateway = gateway;
	}
	
	@Size(min=0, max=255, message="网卡长度不能超过 255 个字符")
	public String getNicmac() {
		return nicmac;
	}

	public void setNicmac(String nicmac) {
		this.nicmac = nicmac;
	}
	
	@Size(min=0, max=255, message="网卡名称长度不能超过 255 个字符")
	public String getIfName() {
		return ifName;
	}

	public void setIfName(String ifName) {
		this.ifName = ifName;
	}
	
	@Size(min=0, max=255, message="网卡速率长度不能超过 255 个字符")
	public String getSpeed() {
		return speed;
	}

	public void setSpeed(String speed) {
		this.speed = speed;
	}
	
	@Size(min=0, max=255, message="是否ipv6长度不能超过 255 个字符")
	public String getIsIpv6() {
		return isIpv6;
	}

	public void setIsIpv6(String isIpv6) {
		this.isIpv6 = isIpv6;
	}
	
	@Size(min=0, max=255, message="拨号错误码长度不能超过 255 个字符")
	public String getDialCode() {
		return dialCode;
	}

	public void setDialCode(String dialCode) {
		this.dialCode = dialCode;
	}
	
	@Size(min=0, max=255, message="拨号错误信息长度不能超过 255 个字符")
	public String getDialMsg() {
		return dialMsg;
	}

	public void setDialMsg(String dialMsg) {
		this.dialMsg = dialMsg;
	}
	
	@Size(min=0, max=50, message="设备ID长度不能超过 50 个字符")
	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	
}